import json

with open("test4.json", encoding="utf-8") as f:
    buf = json.load(f)
    for i in buf:
        print(i.get("name"), i.get("age"), i.get("address").get("city"))
